package com.ksyun.alert.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * 监控指标传输参数
 * @author Zhang
 * @date 2024-04-30
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MetricDTO {

    /**
     * 指标名称
     */
    private String metric;

    /**
     * 标签
     */
    private Map<String, String> tags;

    /**
     * 时间戳
     */
    private Long timestamp;

    /**
     * 指标值
     */
    private Float value;
}
